<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" >
<head>
    <head th:include="/common/global :: global('产品实体','css','admin/product/getProductEntity')">

</head>
<body>
<article class="page-container">
    <form action="" class="form form-horizontal" id="form-member-add">
        <input id="productEntityId" name="productEntityId" th:value="${productEntity?.productEntityId}" type="hidden">
        <input id="tid" name="tid" th:value="${productEntity?.tid}" type="hidden">
        <input id="productId" name="productId" th:value="${productId}" type="hidden">
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>产品实体名称：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" th:value="${productEntity?.name}" placeholder="产品实体名称"
                       id="productEntityName" name="name">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">产品实体介绍：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" th:value="${productEntity.introduction}"
                       placeholder="产品实体介绍" id="productEntityIntroduction" name="introduction">
            </div>
        </div>


        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">价格(元)：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="hidden" class="input-text"
                        th:value="${productEntity?.price}"
                                        id="price" name="price">
                <input type="text" class="input-text"

                placeholder="价格" id="price1"  >
            </div>
         <!--   th:value="${#numbers.formatDecimal(productEntity?.price/100.0, 1, 2)}"-->

        </div>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">单位：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text"
                       th:value="${productEntity?.units}"
                placeholder="单位" id="units" name="units">
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">产品图：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <span class="btn-upload form-group">

                   <input class="input-text upload-url"  type="text" name="resourceUrl" id="productEntityPicUrl" readonly nullmsg="请添加附件！" style="width:200px">
                    <a href="javascript:void(0);" class="btn btn-primary radius upload-btn"><i class="Hui-iconfont">&#xe642;</i> 浏览文件</a>
                  <input type="file" multiple name="productEntityPicUrl" class="input-file">

                </span>
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">产品详情图：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <span class="btn-upload form-group">

                   <input class="input-text upload-url"  type="text" name="resourceUrl" id="productEntityInfoPicUrl" readonly nullmsg="请添加附件！" style="width:200px">
                    <a href="javascript:void(0);" class="btn btn-primary radius upload-btn"><i class="Hui-iconfont">&#xe642;</i> 浏览文件</a>
                  <input type="file" multiple name="productEntityInfoPicUrl" class="input-file">

                </span>
            </div>
        </div>



        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>状态：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <span class="select-box">
                    <select class="select" name="status">
                         <option value="1" th:selected="${productEntity?.status==1}">有效</option>
                         <option value="0" th:selected="${productEntity?.status==0}">无效</option>
                         <option value="2" th:selected="${productEntity?.status==2}">下架</option>
                    </select>
				</span>
            </div>
        </div>
        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                <input class="btn btn-primary radius" type="submit" id="advertSubmit"
                       value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
            </div>
        </div>
    </form>
</article>
</body>
</html>